package com.lx.chong.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author: chong
 * @date: 2018/7/4
 * @tableName: 项目配置表
 */
@Entity
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ProConfig implements Serializable {

    private static final long serialVersionUID = -114713907813213918L;
    /**
     * 唯一标识符
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "Id")
    private Long id;




    /**
     * 单次文件上传最多个数
     */
    @Column(name = "UploadImageMaxCount")
    private Integer uploadImageMaxCount = 10;

    /**
     * 单个文件最大上限大小，单位 M
     */
    @Column(name = "UploadImageMaxSize")
    private Integer uploadImageMaxSize = 5;



    /**
     * 样式图片差异路径名称
     */
    @Column(name = "ImageDoc")
    private String imageDoc;


    /**
     * 备注说明
     */
    @Column(name = "Description", columnDefinition = "TEXT", nullable = true)
    private String description;

    /**
     * 登陆是否启用验证(0：禁用；1：启用)
     */
    @Column(name = "IfLoginVerify")
    private Integer ifLoginVerify = 1;

    /**
     * 是否显示条码打印功能(0：不显示；1：显示)
     */
    @Column(name = "IfPrintCode")
    private Integer ifPrintCode = 0;

    /**
     * 删除标志位(0：未删除；1：删除)
     */
    @Column(name = "IfDelete")
    private Integer ifDelete = 0;

    /**
     * 启用禁用状态(0：禁用；1：启用)
     */
    @Column(name = "UseMark")
    private Integer useMark = 1;

    /**
     * 文件请求前缀
     */
    @Column(name = "UploadInfoUrl")
    private String uploadInfoUrl;

    /**
     * 文件存储地址前缀
     */
    @Column(name = "UploadInfoLocation")
    private String uploadInfoLocation;

    /**
     * 是否是Linux(0:不是 1：是)
     */
    @Column(name = "IsLinux")
    private Integer isLinux;

    /**
     * 是否单点登录模式(0:否 1：是)
     */
    @Column(name = "IsCASLogin")
    private Integer isCASLogin = 0;


    /**
     * 微信公众号AppId
     */
    @Column(name = "PublicNumberAppId")
    private String publicNumberAppId;

    /**
     * 微信公众号Secret
     */
    @Column(name = "PublicNumberSecret")
    private String publicNumberSecret;

    /**
     * 微信公众号报修抢单推送模板
     */
    @Column(name = "RepairerTempId")
    private String repairerTempId;

    /**
     * 微信公众号报价接收模板
     */
    @Column(name = "ReceiveTempId")
    private String receiveTempId;

    /**
     * 微信小程序AppId
     */
    @Column(name = "WeChatAppId")
    private String weChatAppId;

    /**
     * 微信小程序Secret
     */
    @Column(name = "WeChatSecret")
    private String weChatSecret;

    /**
     * 微信小程序抢单成功服务推送模板TempId
     */
    @Column(name = "RobbingOkTempId")
    private String robbingOkTempId;

    /**
     * 定时任务的时间
     */
    @Column(name = "Cron")
    private String cron;
}
